
response = Map();
id = arguments.get("key");
resp = invokeurl
[
	url :"https://api.yelp.com/v3/businesses/" + id
	type :GET
	parameters:{"locale":"en_US"}
	connection:"INSERT_CONNECTION_NAME"
];
location = resp.getJSON("location").getJSON("display_address").toJSONList();
address = "";
for each  add in location
{
	address = address + ", " + add.toString();
}
address = address.removeFirstOccurence(",");
name = resp.getJSON("name");
image_url = resp.getJSON("image_url");
rating = resp.getJSON("rating") + "/5.0";
phone = resp.getJSON("display_phone");
url = resp.getJSON("url");
catStr = "";
categories = resp.getJSON("categories").toJSONList();
for each  cat in categories
{
	catStr = cat.get("title") + ", " + catStr;
}
catStr = catStr.removeLastOccurence(",");
addressPlus = address.replaceAll(" ","+");
newAddress = "[" + address + "](https://www.google.com/maps/place/" + addressPlus + ")";
response = {"text":newAddress,"card":{"title":name,"thumbnail":image_url,"theme":"modern-inline"},"slides":{{"type":"label","title":"Information","buttons":{{"label":"More Info","action":{"type":"open.url","data":{"web":url}},"type":"+"}},"data":{{"Phone":phone},{"Rating":rating},{"Categories":catStr}}}}};
//response.put("text",result);
return response;
